import request from '@/utils/request'

// 查询订单下载记录列表
export function listDOrderRecord(query) {
  return request({
    url: '/video/DOrderRecord/list',
    method: 'get',
    params: query
  })
}

// 查询订单下载记录详细
export function getDOrderRecord(id) {
  return request({
    url: '/video/DOrderRecord/' + id,
    method: 'get'
  })
}

// 新增订单下载记录
export function addDOrderRecord(data) {
  return request({
    url: '/video/DOrderRecord',
    method: 'post',
    data: data
  })
}

// 修改订单下载记录
export function updateDOrderRecord(data) {
  return request({
    url: '/video/DOrderRecord',
    method: 'put',
    data: data
  })
}

// 删除订单下载记录
export function delDOrderRecord(id) {
  return request({
    url: '/video/DOrderRecord/' + id,
    method: 'delete'
  })
}
